import yaml

def read_yaml(filename):

    file=open(file=filename,mode="rb")

    data=yaml.load(file,Loader=yaml.SafeLoader)

    return data